<%--
  Created by IntelliJ IDEA.
  User: Time
  Date: 2023/6/16
  Time: 16:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>密码</th>
        <th>角色编号</th>
        <th>状态</th>
    </tr>
    <tr>
        <th></th>
        <th></th>
        <th></th>
        <th></th>
        <th></th>
    </tr>

</table>
<script src="js/jquery.min.js"></script>
<script>
    function si(){
        let ret = "";
        $.ajax({
            url:"/aa",
            datatype: JSON,
            success:function (data) {
                console.log(data)
                if (data.message=="正确"){

                    for (let user of data.data){
                        console.log(user)
                        ret+=`<tr>
<td>`+user.usrId+`</td>
<td>`+user.usrName+`</td>
<td>`+user.usrPassword+`</td>
<td>`+user.usrRoleId+`</td>
   <td>
                            <a>删除</a>
                            <a>详情</a>
                            <a>编辑</a>
                        </td>
</tr>`
                    }
                    console.log(ret)
                    $("tr:last-child").after(ret);
                }
            }
        })
    }
    si()

</script>
</body>
</html>
